#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QStackedWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QStyle>
#include "network/DataAccess.h"
#include "page/HomePage.h"
#include "page/CreatePage.h"
#include "page/MyPage.h"
#include "page/BlogDetailsPage.h"
#include "page/BanPage.h"
#include "page/LoginPage.h"
#include "page/RegisterPage.h"
#include "component/BlogListWidget.h"
#include "component/CommentListWidget.h"

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);

private:
    QStackedWidget *contentArea;
    HomePage *homePage;
    BlogListWidget *followedPostsPage;
    CommentListWidget *messagePage;
    CreatePage *createPage;
    MyPage *myPage;
    QScrollArea *messageScrollArea;
    BlogDetailsPage *blogDetailsPage;
    BanPage *banPage;
    LoginPage *loginPage;
    RegisterPage *registerPage;

    int demoCount;
    bool isBan;
    bool isLogin;

    bool isUserBanned();
};
#endif // MAINWINDOW_H
